package com.wang.test.service;

import com.wang.test.mapper.UserMapper;
import com.wang.test.model.User;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: wangning
 * @date: 2024/1/10 10:29
 */
@Service
@RequiredArgsConstructor
public class UserService {

    private final UserMapper userMapper;

    public List<User> getSelect(){
        return userMapper.selectList(null);
    }

    public int insertBatchSomeColumn(List<User> users){
        return userMapper.insertBatchSomeColumn(users);
    }

}
